package org.x4444;

import java.util.Date;
import java.util.logging.Logger;

import javax.annotation.Resource;
import javax.ejb.Stateless;
import javax.ejb.Timeout;
import javax.ejb.Timer;
import javax.ejb.TimerService;

@Stateless
public class ReportBean implements Report {
	
	Logger logger = Logger.getLogger(getClass().getName());
	
	@Resource
	TimerService timerService;

	@Override
	public void planReport(Date exp) {
		timerService.createTimer(exp, "Serr");
	}
	
	@Timeout
	void startReport(Timer timer) {
		logger.warning("startReport fires");
	}
}
